package com.liuxing.strategy;

/**
 * @ClassName Context
 * @Description 策略使用
 * @Author ymy
 * @Date 2021/5/21 15:07
 */
public class Context {


    private  IStrategy strategy;
    public Context(IStrategy strategy){
        this.strategy = strategy;
    }

    public String strategyTravel(){
        return this.strategy.strategyTravel();
    }
}
